import axios from 'api/index'

// 查询
export function getContractSearchListApi(data) {
  return axios.post('/api/contracts', data)
}

// 查看合同
export function getContractSearchUrlApi(id) {
  return axios.get(`/api/contracts/${id}/url`)
}

// 允许作废、取消作废、重置合同
export function contractSearchOperationApi(data) {
  return axios.put('/api/contracts/operation', data)
}

// 导出
export function batchExportContractApi(data) {
  return axios.post('/api/contracts/download', data)
}
